<?php
/**
 * Created by PhpStorm.
 * User: LYQ
 * Date: 2019/6/22
 * Time: 20:43
 */

namespace app\admin\model;


use think\Db;
use think\Model;

class User extends Model
{
    public function addUser($name,$email,$psw1){
        echo '程序执行到这里';
        $Db = Db::name('user');

        $res = $Db->insert([
            'name' => $name,
            'email' => $email,
            'password' => $psw1
        ]);
       return $res;
    }
}